package com.qnvip.service;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Author EricLin
 * @Date 2018-06-12 11:48
 */
@FeignClient(value = "credit-loan")
public interface HelloService {

    @RequestMapping(value = "/baihang/credit/query",method = RequestMethod.POST)
    String sayHi(@RequestParam("idCard") String idCard);

    @RequestMapping(value = "/baihang/credit/apply",method = RequestMethod.POST)
    String loanApply(@RequestParam(value = "name") String name,
            @RequestParam(value = "idCard") String idCard,
            @RequestParam(value = "mobile") String mobile,
            @RequestParam(value = "purpose") String purpose,
            @RequestParam(value = "applyTime") String applyTime,
            @RequestParam(value = "queryReason") String queryReason);
}
